package com.qf.data.r;

import lombok.Getter;

/**
 * description: 接口响应的 响应码 枚举类
 * author: Ken
 * 公众号：Java架构栈
 */
@Getter
public enum Codes {

    //相关的枚举对象
    SUCC(200, "成功"),
    FAIL(500, "服务器异常"),
    PARAMENT_ERROR(501, "参数校验异常"),
    FLOW_ERROR(429, "流量限制"),
    DEGRADE_ERROR(430, "服务降级");

    private Integer code;
    private String msg;

    Codes(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }


}
